import { createRouter, createWebHashHistory } from 'vue-router'
const routes = [
    { 
        name: '首页',
        path: '/',
        redirect: '/home',
        component: () => import('@/tabbar/index.vue'),
        children:[
          { name: 'home', path: '/home', component: () => import('@/view/home/index.vue'),},
          { name: 'Wode', path: '/wode', component: () => import('@/view/wode/index.vue')}  
        ]
    },
]
// 创建路由实例
const router = createRouter({
  history: createWebHashHistory(),
  routes //路由表
})
export default router
